2004-10-06 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkpaned.c (gtk_paned_compute_position): Reduce rounding
+ error. (#154658, John Cupitt)
+
* gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Clear
the iter instead of returning it unmodified. (#154186, Jonathan Blandford)
2004-10-06 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkpaned.c (gtk_paned_compute_position): Reduce rounding
+ error. (#154658, John Cupitt)
+
* gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Clear
the iter instead of returning it unmodified. (#154186, Jonathan Blandford)
2004-10-06 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkpaned.c (gtk_paned_compute_position): Reduce rounding
+ error. (#154658, John Cupitt)
+
* gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Clear
the iter instead of returning it unmodified. (#154186, Jonathan Blandford)
2004-10-06 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkpaned.c (gtk_paned_compute_position): Reduce rounding
+ error. (#154658, John Cupitt)
+
* gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Clear
the iter instead of returning it unmodified. (#154186, Jonathan Blandford)
else if (!paned->child1_resize && paned->child2_resize)
paned->child1_size = child1_req;
else if (child1_req + child2_req != 0)
- paned->child1_size = allocation * ((gdouble)child1_req / (child1_req + child2_req));
+ paned->child1_size = allocation * ((gdouble)child1_req / (child1_req + child2_req)) + 0.5;
else
- paned->child1_size = allocation * 0.5;
+ paned->child1_size = allocation * 0.5 + 0.5;
}
else
{
if (paned->child1_resize && !paned->child2_resize)
paned->child1_size += allocation - paned->last_allocation;
else if (!(!paned->child1_resize && paned->child2_resize))
- paned->child1_size = allocation * ((gdouble) paned->child1_size / (paned->last_allocation));
+ paned->child1_size = allocation * ((gdouble) paned->child1_size / (paned->last_allocation)) + 0.5;
}
}